/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.alipay.sofa.boot.test;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.alipay.sofa.boot.examples.demo.isolation.SofaBootClassIsolationDemoApplication;
import com.alipay.sofa.boot.examples.demo.service.facade.SampleService;
import com.alipay.sofa.test.annotation.DelegateToRunner;
import com.alipay.sofa.test.runner.SofaBootRunner;

/**
 * @author qilong.zql
 * @since 2.3.0
 */
@RunWith(SofaBootRunner.class)
@DelegateToRunner(SpringRunner.class)
@SpringBootTest(classes = SofaBootClassIsolationDemoApplication.class)
public class IntegrationTestCaseRunWithoutIsolation {
    @Autowired
    private SampleService sampleService;

    /**
     * Warn: Before run this test method, you should remove the dependency of sofa-ark-springboot-starter,
     * otherwise {@link RuntimeException} would be threw.
     */
    //    @Test
    //    public void test() {
    //        Assert.assertTrue("service".equals(sampleService.service()));
    //    }
}